A generic record type with two fields.
Equality is defined field by field, using the Equals method
inherited from System.Object (i.e. using NaturalEqualityComparer<T>).
This type is similar to KeyValuePair<K,V>, but the latter
uses EqualityComparer<T>.Default to define field equality instead of NaturalEqualityComparer<T>.
Implements
System.IEquatable<Rec<T1,T2>>, System.IFormattable, IShowableBases
object, System.ValueTypeField overview
X1
,
X2Constructor overview
Rec<T1,T2>(T1 x1, T2 x2)Method overview
Equals(Rec<T1,T2> other)
,
Equals(object obj)
,
Finalize(), Inherited from object
,
GetHashCode()
,
GetType(), Inherited from object
,
MemberwiseClone(), Inherited from object
,
Show(System.Text.StringBuilder stringbuilder, ref int rest, System.IFormatProvider formatProvider)
,
ToString()
,
ToString(string format, System.IFormatProvider formatProvider)Operator overview
operator !=(Rec<T1,T2> record1, Rec<T1,T2> record2)
,
operator ==(Rec<T1,T2> record1, Rec<T1,T2> record2)Field details
Constructor details
Method details
Operator details